package com.jctrip.hotel.source.model.greentree.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
 * @Author：Haruhi
 * @description:
 * @Date：2023/8/31 14:17
 * @Package：com.jctrip.hotel.source.model.greentree.req
 * @Project：hotel-main
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JacksonXmlRootElement(localName = "Availability")
public class GetAllRoomCountAndPriceActivityReq extends GreenTreeBaseReq{

    @JacksonXmlProperty(localName = "StartDate")
    private String startDate;

    @JacksonXmlProperty(localName = "EndDate")
    private String endDate;

    @JacksonXmlProperty(localName = "HotelCode")
    private String hotelCode;

    @JacksonXmlProperty(localName = "ReqRooms")
    private ReqRooms reqRooms;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class ReqRooms {
        @JacksonXmlProperty(localName = "ReqRoom")
        private ReqRoom reqRoom;

        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        @Builder
        public static class ReqRoom {
            @JacksonXmlProperty(localName = "roomTypeCode",isAttribute = true)
            private String roomTypeCode;

            @JacksonXmlProperty(localName = "activityCode",isAttribute = true)
            private String activityCode;
        }
    }

}
